<div class="choose-league-title"> 选择杯赛
<select name="select-cup" id="select-cup">
<?php foreach($this->my_cups as $cup){?>
  <option value ="<?php echo $cup['cup_id'] ?>"
          <?php if($this->actuel_cup_id ==$cup['cup_id']){
          	    echo 'selected="selected"';
          }?>><?php echo $cup['name'] ?></option>
 <?php }?>
</select>

</div>

<div class="league-title"><?php echo $this->actuel_league_name;?></div>
<div>小组赛 : <?php echo $this->group_name?> 组</div>

<div>
(客场 : 主场)
<?php foreach ($this->games as $game){?>


<div class="score">
<img class="logo_away" src="/images/team_logo/<?php echo $game['away_logo']?>"/>
<div class="away-team"><?php echo $game['away_team_name']?></div>
<div class="away-team-score"><?php echo $game['away_team_score'] ; ?></div>
<div class="home-team-score"><?php echo $game['home_team_score'] ; ?></div>
<div class="home-team"><?php echo $game['home_team_name']?></div>
<img class="logo_home" src="/images/team_logo/<?php echo $game['home_logo']?>"/>
</div>
<?php } ?>

</div>



<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(document).ready(function() {
    $('#select-cup').change(function(){
        window.location=window.location.pathname + '?cup_id='+$(this).val();

    }
    );

})

//--><!]]>
</script>


         